From: Umang Jain Date: Thu, 2 Jan 2020 07:25:14 +0000 (+0530) Subject: switchMonitor: Center align switcher icon's label X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~781^2^2~276 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=e07a5749b7ec25f2adcdd60dc09dcd401736fd2c;p=gnome-shell.git switchMonitor: Center align switcher icon's label Fallout from 104071acbd. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/913 --- diff --git a/js/ui/switchMonitor.js b/js/ui/switchMonitor.js index ded8c49c0..5ac582522 100644 --- a/js/ui/switchMonitor.js +++ b/js/ui/switchMonitor.js @@ -86,7 +86,10 @@ class SwitchMonitorSwitcher extends SwitcherPopup.SwitcherList { icon_size: APP_ICON_SIZE }); box.add_child(icon); - let text = new St.Label({ text: item.label }); + let text = new St.Label({ + text: item.label, + x_align: Clutter.ActorAlign.CENTER, + }); box.add_child(text); this.addItem(box, text);